﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>LinR</title>
<meta name="GENERATOR" content="WinCHM">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style>
html,body { 
	/* Default Font */
	font-family: 宋体, Arial, Helvetica, sans-serif;
	font-size: 10pt;
}
</style>

</head>

<body>
<P>
<TABLE style="BORDER-COLLAPSE: collapse" border=1 cellSpacing=0 
borderColor=#000000 cellPadding=1 width=800>
  <TR>
    <TD width=120>
      <P align=center><FONT size=2>定义</FONT></P></TD>
    <TD width=680><FONT size=2><STRONG><FONT color=#0000ff>C++：</FONT></STRONG><br>int xge::math::LinR(int lx1, int ly1, int lx2, int ly2, int rx1, int ry1, int rx2, int ry2);<br><br><STRONG><FONT color=#0000ff>FreeBasic：</FONT></STRONG><br>Function xge.math.LinR(lx1 As Integer, ly1 As Integer, lx2 As Integer, ly2 As Integer, rx1 As Integer, ry1 As Integer, rx2 As Integer, ry2 As Integer) As Integer<br><br><STRONG><FONT color=#0000ff>SDK_C：</FONT></STRONG><br>暂未公布<br><br><STRONG><FONT color=#0000ff>SDK_BASIC：</FONT></STRONG><br>暂未公布<br><br><STRONG><FONT color=#0000ff>SDK_Pascal：</FONT></STRONG><br>暂未公布<br><br><STRONG><FONT color=#0000ff>SDK_易语言：</FONT></STRONG><br>暂未公布<br><br></FONT></TD></TR>
  <TR>
    <TD width=120>
      <P align=center><FONT size=2>功能</FONT></P></TD>
    <TD width=680><FONT size=2><br>计算线与矩形是否相交。<br><br></FONT></TD></TR>
  <TR>
    <TD width=120>
      <P align=center><FONT size=2>参数</FONT></P></TD>
    <TD width=680><FONT size=2><br><STRONG><FONT color=#0000ff>lx1：</FONT></STRONG><br>线条第一个点的横坐标。<br><br><STRONG><FONT color=#0000ff>ly1：</FONT></STRONG><br>线条第一个点的纵坐标。<br><br><STRONG><FONT color=#0000ff>lx2：</FONT></STRONG><br>线条第二个点的横坐标。<br><br><STRONG><FONT color=#0000ff>ly2：</FONT></STRONG><br>线条第二个点的纵坐标。<br><br><STRONG><FONT color=#0000ff>rx1：</FONT></STRONG><br>矩形左上角的横坐标。<br><br><STRONG><FONT color=#0000ff>ry1：</FONT></STRONG><br>矩形左上角的纵坐标。<br><br><STRONG><FONT color=#0000ff>rx2：</FONT></STRONG><br>矩形右下角的横坐标。<br><br><STRONG><FONT color=#0000ff>ry2：</FONT></STRONG><br>矩形右下角的纵坐标。<br><br></FONT></TD></TR>
  <TR>
    <TD width=120>
      <P align=center><FONT size=2>返回值</FONT></P></TD>
    <TD width=680><FONT size=2><br>相交返回 -1[True] 否则返回 0[False]。<br><br></FONT></TD></TR>
  <TR>
    <TD width=120>
      <P align=center><FONT size=2>补充说明</FONT></P></TD>
    <TD width=680><FONT size=2><br>无。<br><br></FONT></TD></TR>
  <TR>
    <TD width=120>
      <P align=center><FONT size=2>使用范例</FONT></P></TD>
    <TD width=680><FONT size=2><br><STRONG><FONT color=#0000ff>C++：</FONT></STRONG><br>无范例。<br><br><STRONG><FONT color=#0000ff>FreeBasic：</FONT></STRONG><br>无范例。</FONT></TD></TR></TABLE></P></body>